/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package ngramassigment.data;

/**
 *
 * @author Tran
 */
public class ResultDataProbability {
    private int countUp;
    private int countDown;
    private double prob;

    public ResultDataProbability(int countUp, int countDown) {
        this.countUp = countUp;
        this.countDown = countDown;
        if (countDown == 0)
            this.prob = 0.0;
        else 
            this.prob = (countUp * 1.0) / (countDown * 1.0);
    }    

    public int getCountUp() {
        return countUp;
    }

    public void setCountUp(int countUp) {
        this.countUp = countUp;
    }

    public int getCountDown() {
        return countDown;
    }

    public void setCountDown(int countDown) {
        this.countDown = countDown;
    }

    public double getProb() {
        return prob;
    }

    public void setProb(double prob) {
        this.prob = prob;
    }
    
    
    

}
